home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / misc1 / instal.zip / WSLIB / WS.H < prev    next >
C/C++ Source or Header  |  1991-06-12  |  4KB  |  134 lines

  1. /*----------------------------------------------------------------------------*\
  2. |   ws.h  - Windows Setup                               |
  3. \*----------------------------------------------------------------------------*/
  4.  
  5. #include "wprintf.h"
  6.  
  7. #define XMS_SPEC_VER    0x0200    // we require an XMS spec version of this or higher
  8. #define XMS_DRIVER_VER    0x0260    // and a driver version of this or higher
  9.  
  10. extern char    bufTmp[];
  11. extern HWND    hwndWS;
  12. extern HWND    hwndHelp;
  13. extern HWND    hwndDlg;
  14. extern HWND    hwndExitButton;
  15. extern HWND    hwndHelpButton;
  16. extern HWND    hwndInst;
  17. extern HWND    hwndFileCopy;
  18. extern HANDLE    hInstWS;
  19. extern HICON    hiconOld;
  20. extern BOOL    fFirstTime;
  21. extern BOOL    fMono;
  22. extern BOOL    fCancel;
  23. extern BOOL    bIsNetSetup;
  24. extern BOOL    bUpdateOldWindows;
  25. extern BOOL    bIs386;
  26. extern BOOL    bTweakMouse;
  27. extern WORD    fExit;
  28. extern int    dyChar;
  29. extern WORD    capsScreen;
  30. extern HICON    hiconWinApp;
  31. extern char szRoot[];
  32. extern char szSystem[];
  33. extern char szNull[];
  34. extern char szDisplay[];
  35. extern char szMouse[];
  36. extern char szKeytype[];
  37. extern char szSystemIni[];
  38. extern char szProgmanIni[];
  39. extern char szCaption[];
  40. extern char szEGASYS[20];    // #:EGA.SYS if we are doing an ega.sys hack
  41. extern char szNetwork[];
  42. extern char szK[];
  43. extern char szHelpFile[];
  44.  
  45.  
  46.  
  47. #define CP_PRINTERSETUP (WM_USER + 401)
  48. #define CP_PRINTERHELP  (WM_USER + 402)
  49.  
  50. /*
  51.  *  Exit flags.
  52.  */
  53. #define EF_RESTART  0x01        // User allowed option to start windows.
  54. #define EF_REBOOT   0x02        // User needs to reboot
  55. #define EF_DOS      0x04        // User should be returned to DOS
  56.  
  57. void FAR cdecl DlgPrintf (HWND hwnd, int id, PSTR pch,...);
  58.  
  59. BOOL PUBLIC wsInstallDlg(HWND,unsigned,WORD,LONG);
  60. BOOL PUBLIC wsMaintainDlg(HWND,unsigned,WORD,LONG);
  61. BOOL PUBLIC wsAppsDlg(HWND,unsigned,WORD,LONG);
  62. BOOL PUBLIC wsDiskDlg(HWND,unsigned,WORD,LONG);
  63. BOOL PUBLIC wsErrorDlg(HWND,unsigned,WORD,LONG);
  64. BOOL PUBLIC wsPifSearchDlg(HWND,unsigned,WORD,LONG);
  65. BOOL PUBLIC wsConfigSysDlg(HWND,unsigned,WORD,LONG);
  66. BOOL PUBLIC wsSysOldDlg(HWND,unsigned,WORD,LONG);
  67. BOOL PUBLIC wsViewSettingsDlg(HWND,unsigned,WORD,LONG);
  68. BOOL PUBLIC wsChangeSettingsDlg(HWND,unsigned,WORD,LONG);
  69. BOOL PUBLIC wsExitDlg(HWND,unsigned,WORD,LONG);
  70. BOOL PUBLIC wsDoOemDisplay(HWND hDlg, PSTR pinf);
  71. BOOL PUBLIC wsDoOemMouse(HWND hDlg, PSTR pinf);
  72. long PUBLIC InstWndProc(HWND,unsigned,WORD,LONG);
  73. long PUBLIC DeskWndProc(HWND,unsigned,WORD,LONG);
  74. void PUBLIC FixPath(PSTR szPath);
  75. void PUBLIC EnableExit(BOOL bEnable);
  76. void PUBLIC EnableHelp(BOOL bEnable);
  77. void PUBLIC CloseSetup(HWND hwnd);
  78.  
  79.  
  80. BOOL PUBLIC wsYield(void);
  81.  
  82. PSTR PUBLIC wsLoadSz(int ids, PSTR pch);
  83. BOOL PUBLIC wsHelp(int id);
  84. BOOL PUBLIC wsHelpMeSpock(HWND);
  85. BOOL PUBLIC wsHelpTerm(HWND hwnd);
  86.  
  87. void PUBLIC wsDlgInit(HWND hDlg);
  88. WORD PUBLIC wsCopyError(int n, LPSTR sz);
  89. WORD PUBLIC wsInsertDisk(int n, LPSTR sz);
  90.  
  91. BOOL PUBLIC wsHelpInit(HANDLE hinst);
  92.  
  93. BOOL PUBLIC wsCopyFiles(PSTR szSource, PSTR szDest);
  94. BOOL PUBLIC wsCopy(PSTR szSection);
  95. BOOL PUBLIC wsCopySys(BOOL bCopy);
  96.  
  97. BOOL PUBLIC wsCopyFonts(HWND);
  98. BOOL PUBLIC wsBootShell(void);
  99. BOOL PUBLIC wsInstallApps(HWND);
  100. BOOL PUBLIC wsDickWithConfig(HWND hwnd);
  101.  
  102. void PUBLIC wsStartWait(void);
  103. void PUBLIC wsEndWait(void);
  104. int  PUBLIC QueryRadioButton(HWND hDlg, int idLow, int idHigh);
  105.  
  106. WORD PUBLIC wsCopyStatus(int msg, int n, LPSTR szFile);
  107. WORD PUBLIC wsCopySingleStatus(int msg, int n, LPSTR szFile);
  108. BOOL PUBLIC WinExecWait(LPSTR szCmd, int sw);
  109. #ifdef DO_PATCH
  110. BOOL PUBLIC wsRunPatches(void);
  111. #endif
  112.  
  113. PSTR PUBLIC GetDriverName(PSTR szDriver, PSTR szBuf);
  114. BOOL PUBLIC CheckSpecialKeys(LPMSG pmsg);
  115. BOOL PUBLIC wsInstallWindows(WORD fOptions);
  116. BOOL PUBLIC QueryExit();
  117. LONG PUBLIC atoi(PSTR sz);
  118. int  PUBLIC CopyOldAppFonts(PSTR szGrabber, BOOL bIsNet);
  119. LPSTR PUBLIC lgetenv(LPSTR lpszName);
  120. LONG PUBLIC ldiv(LONG dw, LONG divisor);
  121. void PUBLIC SizeWinHelp(BOOL bSetDefault);
  122. void PUBLIC GenerateProgmanPath(PSTR filename, PSTR szPath);
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.         
  134.